package sf.database.template.mybatis;

import sf.tools.StringUtils;

import java.util.List;

public class SqlParam {
    private String sql;
    private List<Object> params;
    private List<String> propertyNames;

    public String getSql() {
        return sql;
    }

    public List<String> getPropertyNames() {
        return propertyNames;
    }

    public void setPropertyNames(List<String> propertyNames) {
        this.propertyNames = propertyNames;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public List<Object> getParams() {
        return params;
    }

    public void setParams(List<Object> params) {
        this.params = params;
    }

    @Override
    public String toString() {
        return "SqlWithParam{" +
                "sql='" + sql + '\'' +
                ", params=" + StringUtils.join(params,",") +
                '}';
    }
}
